package vn.conghuy.talkwithme.responsor.responsor;

import android.content.Context;

public abstract class Responsor {
	
	
	int relativeLastResponse;
	String lastRequest;
	Context context;
	
	public static final int RELATIVE_NONE = 0;
	
	public Responsor() {
		
	}
	
	public Responsor(Context context) {
		this.context = context;
	}
	
	public String response(String request){
		lastRequest = request;
		relativeLastResponse = RELATIVE_NONE;
		return null;
	}
	
	public void reset(){
		relativeLastResponse = RELATIVE_NONE;
		lastRequest = null;
	}
	
	public int relativeWithLastRequest(String sentence){
		return relativeLastResponse;
	}

	/**
	 * @return
	 * @uml.property  name="relativeLastResponse"
	 */
	public int getRelativeLastResponse() {
		return relativeLastResponse;
	}

	/**
	 * @return
	 * @uml.property  name="lastRequest"
	 */
	public String getLastRequest() {
		return lastRequest;
	}

	/**
	 * @return
	 * @uml.property  name="context"
	 */
	public Context getContext() {
		return context;
	}

	/**
	 * @param relativeLastResponse
	 * @uml.property  name="relativeLastResponse"
	 */
	public void setRelativeLastResponse(int relativeLastResponse) {
		this.relativeLastResponse = relativeLastResponse;
	}
	
	public int indexOfMainVerb(String request){
		return -1;
	}
}
